package com.bestv.search.common.service;

import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.TopNCache;

import java.util.List;

public interface TopNCacheManager {

    void saveOrUpdate(DataSourceKey key, List<TopNCache> list);

    List<TopNCache> get(DataSourceKey key, String type, String subType, String category, int topN);

    List<TopNCache> getIncrease(DataSourceKey key, String type, String subType, String category, int topN);

    void updateMediaCodeHitCache(DataSourceKey key, String type);

    int deleteHistroyByKeyword(DataSourceKey key, String keyword);
}
